<%@ include file="/WEB-INF/jsp/include.jsp"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<c:set var="daymenu" value="${eatingMenu.dayMenu}"/>
<c:set var="usertable" value="${daymenu.usersTable}"/>
<spring:message code="eatingmenu.${eatingMenu.eatingType}" var="eatingtype"/>
<table border="1">
    <tr>
        <th>
            <a>Sub menu</a>
        </th>
        <td>
            <a href="<c:url value="/userstable-get.html"><c:param name="id" value="${usertable.id}"/></c:url>">user's table(<c:out value="${usertable.name}"/>)</a>
            &nbsp;
            =>
            &nbsp;
            <a href="<c:url value="/daymenus-get.html"><c:param name="usersTableId" value="${usertable.id}"/> <c:param name="id" value="${daymenu.id}"/></c:url>">day menu(day number <c:out value="${daymenu.dayNumber + 1}"/>)</a>
            &nbsp;
            =>
            &nbsp;
            eating menu(<c:out value="${eatingtype}"/>)
        </td>
    </tr>
</table>